#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include "engine.h"

namespace Ui {
    class Widget;
}

class QSlider;

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget * parent = 0);
 //   void connectSignals(Engine * engine);
    ~Widget();

private:
    Ui::Widget *ui;
    float normalSliderValue(QSlider * s);

signals:
    void volume(int channel, float value); // master is 0
    void pan(int channel, float value);
    void mute(int channel, bool isMuted);

public slots:
    void on_sldVolume1_valueChanged(int val);
    void on_sldVolume2_valueChanged(int val);
    void on_sldVolume3_valueChanged(int val);
    void on_sldVolumeAll_valueChanged(int val);


};

#endif // WIDGET_H
